package com.dt76.smallloanbackendservice.pojo.ysy;

import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
public class YBankAccount implements Serializable {

  private int yId;
  private int lsId;
  private String yNum;
  private String title;
  private String depositBank;
  private String openBank;
  private String currency;
  private String type;
  private String status;

  //一对一
  private ApprovalLoan app;

  public ApprovalLoan getApp() {
    return app;
  }

  public void setApp(ApprovalLoan app) {
    this.app = app;
  }

  public YBankAccount() {
  }

  public YBankAccount(int yId, String yNum, String title, String depositBank, String openBank, String currency, String type, String status) {
    this.yId = yId;
    this.yNum = yNum;
    this.title = title;
    this.depositBank = depositBank;
    this.openBank = openBank;
    this.currency = currency;
    this.type = type;
    this.status = status;
  }

  public int getyId() {
    return yId;
  }

  public void setyId(int yId) {
    this.yId = yId;
  }

  public int getLsId() {
    return lsId;
  }

  public void setLsId(int lsId) {
    this.lsId = lsId;
  }

  public String getyNum() {
    return yNum;
  }

  public void setyNum(String yNum) {
    this.yNum = yNum;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getDepositBank() {
    return depositBank;
  }

  public void setDepositBank(String depositBank) {
    this.depositBank = depositBank;
  }

  public String getOpenBank() {
    return openBank;
  }

  public void setOpenBank(String openBank) {
    this.openBank = openBank;
  }

  public String getCurrency() {
    return currency;
  }

  public void setCurrency(String currency) {
    this.currency = currency;
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  @Override
  public String toString() {
    return "YBankAccount{" +
            "yId=" + yId +
            ", lsId=" + app.getAlId() +
            ", yNum='" + yNum + '\'' +
            ", title='" + title + '\'' +
            ", depositBank='" + depositBank + '\'' +
            ", openBank='" + openBank + '\'' +
            ", currency='" + currency + '\'' +
            ", type='" + type + '\'' +
            ", status='" + status + '\'' +
            ", 时间=" + app.getAlTime() +
            ", money=" + app.getAlLoanMoney() +
            '}';
  }
}
